﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/QuizAdmin.Master" AutoEventWireup="true" CodeBehind="AddQuestionLevel.aspx.cs" Inherits="BladeTecWebApplication.Admin.AddQuestionLevel" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    
    <script type="text/javascript">

    	function validate() {
    		if (Page_ClientValidate()) {
    			$("#divRequired").hide();
    		} else {
    			$("#divRequired").show();
    		}
    	}
    </script>  
    
    
    
    <style type="text/css">
        .style2
        {
            width: 106px;
        }
        .style4
        {
        }
    </style>



</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <span class="pageTitle">Add Question Level</span><br /><br />


<asp:Panel ID="pnlQuestionLevelForm" runat="server" Width="315px">

	<asp:Panel runat="server" ID="pnlNumericError" Visible="false">
		<div class="ui-state-error ui-corner-all" style="padding: 0 .7em;"> 
			<p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span> 
			<strong>Error:</strong> The level weight must be a numeric decimal value.</p>
		</div>
	</asp:Panel>
	<div style="color: Red; display:none" id="divRequired">
	* Required<br /><br />
	</div>
<table style="border: 0px none;">

	<tr>
 
		<td class="style2">
			Level Description:<asp:RequiredFieldValidator runat="server" ControlToValidate="txtlevelDescription" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator></td>
		<td>
			<asp:TextBox ID="txtlevelDescription" runat="server" CssClass="stdTextBox" 
				MaxLength="30" ViewStateMode="Disabled" Width="189px"></asp:TextBox>
		</td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
    <tr>
        <td class="style2">
            Level Weight:<asp:RequiredFieldValidator runat="server" ControlToValidate="txtlevelWeight" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator></td>
        <td class="style4" style="padding-bottom:5px;">
            <asp:TextBox ID="txtlevelWeight" runat="server" CssClass="stdTextBox" 
                Width="71px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td colspan="3" style="text-align:right; border-top: 1px solid #666;">
            <br />
            <asp:Button ID="btnAddQuestionLevel" runat="server" 
                onclick="btnAddQuestionLevel_Click" Text="Add" OnClientClick="validate();" />
        </td>
    </tr>
   

</table>
    </asp:Panel>

    
        
   
&nbsp;


    <asp:Panel ID="pnlConfirmationForm" runat="server" Visible="False">
		The level was successfully added.
		<br /><br />
		<a class="dashboardLink" href="Levels.aspx">View Levels</a>
    </asp:Panel>

</asp:Content>